$(function(){
	getGenerateFolderList();
})

function getGenerateFolderList(){
	$.ajax({
		type:"post",
		url:"/quality/getQualityConList",
		success:function(data){
		
			if(data!=null){
				var html="";
				for(var i in data){
					var folder=data[i];
					html+="<tr>"+
					  " <td class='tdLabel_5'>"+(parseInt(i)+1)+"</td>"+
					  "	<td class='tdLabel_5'>"+(folder.controlName==undefined?'':folder.controlName)+"</td>"+
					  "	<td class='tdLabel_5'>"+(folder.folderName==undefined?'':folder.folderName)+"</td>"+
					  "	<td class='tdLabel_5'>"+(folder.medQualityLevel==undefined?'':folder.medQualityLevel)+"</td>"+
					  "	<td class='tdLabel_5'>"+(folder.medRecordLabel==undefined?'':folder.medRecordLabel)+"</td>"+
					  " <td class='tdLabel_5'>"+(folder.qcDockPoints==undefined?'':folder.qcDockPoints)+"</td>"+
					  " <td class='tdLabel_5'>"+(folder.medControlDesc==undefined?'':folder.medControlDesc)+"</td>"+
					  " <td class='tdLabel_5'><a href='/quality/showDetail?id="+folder.id+"'>查看</a></td>"+
					  "</tr>";
				}
				$("#tbody").html(html);
			}
		}
	})
}


//病案质控
function detailController(obj){
	var $this=$(obj);
	alert($this.attr("folderName"));
}